def read_test():
    fp = open("1.txt", 'r')
    s = fp.read()
    print(s)
    fp.close()


def writer_test():
    file = open("1.txt", "w")
    file.write("看看这个python")
    file.close()
# IndentationError: unindent does not match any outer indentation level
if __name__ == '__main__':
   writer_test()
   read_test()